function cfg = plotRegionPeakTiming_defaultCfg()

cfg.PValueLessThanSelection = 0.025; % Set NaN when you don't want to test significance
cfg.SubjectSelection = 'Subject DS';
cfg.ChannelSelection = 'OCCD'; % Set [] to disable filter
cfg.BinSelection = '7-13Hz';

cfg.View = 'Condition'; % Indicate what the wanted y-axis is.
cfg.ViewItemConfig = viewItemConfig;

% Set up the grouping of lines by defining areas of background
cfg.PlotRegions(1).From = 2.2;
cfg.PlotRegions(1).To = 5.8;
cfg.PlotRegions(1).BackgroundColor = [.85 .95 .85];
cfg.PlotRegions(1).Annotation = 'FH House';

cfg.PlotRegions(2).From = 6.2;
cfg.PlotRegions(2).To = 9.8;
cfg.PlotRegions(2).BackgroundColor = [.85 .95 .85];
cfg.PlotRegions(2).Annotation = 'FH Face';

cfg.PlotRegions(3).From = 10.2;
cfg.PlotRegions(3).To = 13.8;
cfg.PlotRegions(3).BackgroundColor = [.85 .85 .95];
cfg.PlotRegions(3).Annotation = 'FH';

cfg.PlotRegions(4).From = 14.2;
cfg.PlotRegions(4).To = 17.8;
cfg.PlotRegions(4).BackgroundColor = [.95 .85 .85];
cfg.PlotRegions(4).Annotation = 'Sphere';

end


function c = viewItemConfig()
cc.Name = 'n/a';
cc.Label = '';
cc.Color = [1 0 0];
cc.YLocation = 1;
c(1) = cc;

c(end+1) = cc;
cc.Name = 'FaceHouse Unambiguous Stimulus';
cc.Label = 'FH-US';
cc.Color = [1 1 0];
cc.YLocation = 11;
c(end+1) = cc;
cc.Name = 'FaceHouse Unambiguous Response';
cc.Label = 'FH-UR';
cc.Color = [0.5 1 0];
cc.YLocation = 12;
c(end+1) = cc;
cc.Name = 'FaceHouse Ambiguous Response';
cc.Label = 'FH-AR';
cc.Color = [0.5 1 0];
cc.YLocation = 13;
c(end+1) = cc;

c(end+1) = cc;
cc.Name = 'FaceHouse Unambiguous House Stimulus';
cc.Label = 'FH-UHS';
cc.Color = [1 1 0];
cc.YLocation = 3;
c(end+1) = cc;
cc.Name = 'FaceHouse Unambiguous House Response';
cc.Label = 'FH-UHR';
cc.Color = [0.5 1 0];
cc.YLocation = 4;
c(end+1) = cc;
cc.Name = 'FaceHouse Ambiguous House Response';
cc.Label = 'FH-AHR';
cc.Color = [0.5 1 0];
cc.YLocation = 5;
c(end+1) = cc;

cc.Name = 'FaceHouse Unambiguous Face Stimulus';
cc.Label = 'FH-UFS';
cc.Color = [1 1 0];
cc.YLocation = 7;
c(end+1) = cc;
cc.Name = 'FaceHouse Unambiguous Face Response';
cc.Label = 'FH-UFR';
cc.Color = [0.5 1 0];
cc.YLocation = 8;
c(end+1) = cc;
cc.Name = 'FaceHouse Ambiguous Face Response';
cc.Label = 'FH-AFR';
cc.Color = [0.5 1 0];
cc.YLocation = 9;
c(end+1) = cc;

cc.Name = 'Sphere Unambiguous Stimulus';
cc.Label = 'SP-UFS';
cc.Color = [1 1 0];
cc.YLocation = 15;
c(end+1) = cc;
cc.Name = 'Sphere Unambiguous Response';
cc.Label = 'SP-UFR';
cc.Color = [0.5 1 0];
cc.YLocation = 16;
c(end+1) = cc;
cc.Name = 'Sphere Ambiguous Response';
cc.Label = 'SP-AFR';
cc.Color = [0.5 1 0];
cc.YLocation = 17;
c(end+1) = cc;

cc.Name = 'Sphere Voluntary Stimulus';
cc.Label = 'SPVS';
cc.Color = [0.5 0 0.4];
cc.YLocation = 1;
c(end+1) = cc;


cc.Name = 'FRO_A';
cc.Label = 'FRO_A';
cc.Color = [1 0.5 0];
cc.YLocation = 2;
c(end+1) = cc;
cc.Name = 'FRO_P';
cc.Label = 'FRO_P';
cc.Color = [1 0.5 0];
cc.YLocation = 3;
c(end+1) = cc;
cc.Name = 'IPS_I';
cc.Label = 'IPS_I';
cc.Color = [0 1 0];
cc.YLocation = 4;
c(end+1) = cc;
cc.Name = 'IPS_S';
cc.Label = 'IPS_S';
cc.Color = [0 1 0];
cc.YLocation = 5;
c(end+1) = cc;
cc.Name = 'OCC_D';
cc.Label = 'OCC_D';
cc.Color = [0 0.5 1];
cc.YLocation = 6;
c(end+1) = cc;
cc.Name = 'OCC_V';
cc.Label = 'OCC_V';
cc.Color = [0.5 0 1];
cc.YLocation = 7;
c(end+1) = cc;
cc.Name = 'PAR_A';
cc.Label = 'PAR_A';
cc.Color = [0.5 1 0];
cc.YLocation = 8;
c(end+1) = cc;
cc.Name = 'PAR_O';
cc.Label = 'PAR_O';
cc.Color = [0.5 1 0];
cc.YLocation = 9;
c(end+1) = cc;
cc.Name = 'TEM_I';
cc.Label = 'TEM_I';
cc.Color = [0 0.5 0.5];
cc.YLocation = 10;
c(end+1) = cc;
cc.Name = 'TEM_M';
cc.Label = 'TEM_M';
cc.Color = [0 0.5 0.5];
cc.YLocation = 11;
c(end+1) = cc;
cc.Name = 'TEM_S';
cc.Label = 'TEM_S';
cc.Color = [0 0.5 0.5];
cc.YLocation = 12;
c(end+1) = cc;
end